@import '_reset.scss';
.top {
  background: #26272b;
  position: relative;
  -webkit-user-select: none;
}

.top-wrap {
  width: 100%;
  max-width: 1120px;
  min-width: 320px;
  margin: 0 auto;
}

.hd {
  padding: 30px;
  overflow: hidden;
  .logo {
    float: left;
    width: 120px;
    height: 100px;
    background: url(../img/bg-logo.png) no-repeat;
    background-size: 120px 100px;
    position: relative;
    font-size: 0;
  }
  .title-wrap {
    float: left;
    margin-left: 20px;
  }
  .title {
    font-size: 22px;
    line-height: 50px;
    color: #fa862e;
  }
  .subtitle {
    font-size: 16px;
    line-height: 24px;
    color: #777;
    letter-spacing: 2px;
  }
}

.nav {
  background: #33363b;
  overflow: hidden;
  .menu {
    display: none;
    padding: 15px;
    line-height: 20px;
    text-align: right;
    font-size: 16px;
    color: #ccc;
  }
  .nav-bar {
    float: left;
    overflow: hidden;
    a {
      display: inline-block;
      line-height: 50px;
      padding: 0 20px;
      color: #ccc;
    }
    a:hover {
      color: #fff;
      background: #000;
    }
  }
}

.main {
  max-width: 1120px;
  min-width: 320px;
  margin: 20px auto;
  overflow: hidden;
}

.items {
  float: left;
  width: 758px;
  border: 1px solid #e4e4e4;
  background: #fff;
  border-left: 0;
}

.item {
  padding: 20px;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  .thumb {
    float: left;
    width: 300px;
    height: 180px;
    overflow: hidden;
    img {
      width: 100%;
      vertical-align: middle;
      -webkit-transition: 1s all ease;
      -moz-transition: 1s all ease;
      transition: 1s all ease;
    }
    a:hover img {
      -webkit-transform: scale(1.1);
      -moz-transform: scale(1.1);
      transform: scale(1.1);
    }
  }
  .intro {
    float: left;
    width: 350px;
    padding-left: 20px;
    .title {
      display: block;
      font-size: 18px;
      font-weight: 400;
      line-height: 30px;
      overflow: hidden;
      a {
        color: #555;
        text-decoration: none;
      }
      a:hover {
        color: #fa862e;
      }
    }
  }
  .meta {
    line-height: 30px;
    font-size: 12px;
    color: #bbb;
    span {
      color: #fa862e;
      padding-right: 10px;
    }
  }
  .text {
    color: #aaa;
    height: 120px;
    line-height: 25px;
    overflow: hidden;
    a {
      display: none;
    }
  }
}

// pages
.pages-wrap {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 10px;
  .info,
  .pages {
    color: #aaa;
    line-height: 40px;
    text-align: center;
  }
  .page {
    display: inline;
    padding: 6px 8px;
    margin: 0 2px;
    border-top: 1px solid #f1f1f1;
    border-bottom: 3px solid #ddd;
    -webkit-transition: 0.2s ease-in;
    -moz-transition: 0.2s ease-in;
    transition: 0.2s ease-in;
  }
  .page:hover,
  .page.active {
    color: #444;
    border-bottom: 3px solid #fa862e;
  }
}

// sidebar
.sidebar {
  float: right;
  width: 340px;
  margin-left: 20px;
  padding-top: 20px;
  background: #fff;
  a:hover {
    color: #fa862e;
  }
  p {
    font-size: 16px;
  }
  .title {
    padding: 0 10px;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 16px;
    color: #fa862e;
    background-color: #fff;
    border-left: 4px solid #fa862e;
  }
}

.panel {
  padding: 0 20px;
  margin-bottom: 20px;
  .tags {
    overflow: hidden;
    a {
      float: left;
      border-radius: 6px;
      padding: 2px;
      margin: 0 0 5px 5px;
      em {
        color: #fa862e;
      }
    }
  }
  .link {
    a {
      display: block;
      line-height: 30px;
      border-bottom: 1px solid #e4e4e4;
      background-color: #fff;
    }
  }
}

.user {
  text-align: center;
  display: none;
  img {
    width: 150px;
    height: 150px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  span{
    color: #f90;
  }
  &.active{
    display: block;
  }
}

.login {
  p{
    text-align: center;
    margin-bottom: 10px;
  }
  input[type=text]{
    width: 200px;
    border-width: 1px;
  }
  input,
  .sub{
    padding: 4px 10px;
    border-radius: 2px;
  }
  .sub{
    width: 220px;
    display:inline-block;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    background-color: #fa862e;
    border: 2px solid #fa862e;
  }
  .sub:hover{
    color: #fff;
    background-color: #f90;
    border: 2px solid #f90;
  }
  .tab{
    display: none;
  }
  .tab.active{
    display: block;
  }
  .warn{
    font-size: 12px;
    color:red;
  }
  .tab-btn {
    text-indent: 180px;
    font-size: 12px;
  }
  .btn.active {
    color: #fa862e;
  }
}

// article
.article {
  padding: 20px;
  border: 1px solid #ccc;
  background-color: #fff;
  .title {
    line-height: 50px;
    font-size: 20px;
    font-weight: 500;
    color: #fa862e;
  }
  .time {
    margin-bottom: 10px;
  }
  .content {
    line-height: 25px;
    color: #6B6B6B;
    p {
      font-size: 14px;
      line-height: 25px;
      margin-bottom: 10px;
    }
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      color: #fa862e !important;
      line-height: 30px !important;
      font-size: 16px !important;
      font-weight: 400;
      margin-bottom: 10px !important;
    }
  }
}

// footer
.footer {
  line-height: 30px;
  color: #aaa;
  background: #33363b;
  position: relative;
  .footer-wrap {
    max-width: 1120px;
    min-width: 320px;
    width: 100%;
    margin: 0 auto;
    p {
      padding: 30px;
    }
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 10px;
    top: 10px;
    a {
      display: block;
      width: 40px;
      height: 40px;
      background: url(../img/bg-toTtop.png) no-repeat 0 -40px;
      transition: all .5s;
    }
    a:hover {
      background-position: 0 -80px;
    }
  }
}

@media only screen and (min-width: 959px) and (max-width: 1120px) {
  .main {
  }
}

@media only screen and (min-width: 719px) and (max-width: 959px) {
  .main {
  }
}

@media only screen and (min-width: 319px) and (max-width: 719px) {
  .nav-bar {
    float: none;
    display: none;
    a {
      float: none;
      display: block;
    }
  }
  .nav .menu {
    display: block;
  }
  .nav .menu:focus+.nav-bar {
    display: block;
  }
}
